Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response getter for WebApiExtension #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vmanchev
Copy link

In order to add more step definitions, by extending the WebApiContext class, we need access to the response object. By default, the response property is defined with "private" visibility. We either need a getter or the visibility to be changed to protected. To keep the consistency, lets add a getter method.

@stof
Copy link
Member

stof commented Oct 22, 2015

I'm -1 for adding a getter for this, as it would mean that the type of the Response becomes part of our API, and we cannot support Guzzle6 anymore (see #35)

@stof
Copy link
Member

stof commented Oct 22, 2015

I understand that you want to be able to perform more assertions, but we first need to find the right architecture to expose things without making the maintenance a BC nightmare

@tchaffee
Copy link

+1 for this. See my comment at #40

@anho
Copy link

anho commented Apr 15, 2016

Now that #35 was merged, can we come back to this issue? Making the response accessible in a subclass is really hacky at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants